﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>滑动效果</title>
		<style type="text/css">
			#panel,
			#flip {
				padding: 5px;
				text-align: center;
				background-color: #e5eecc;
				border: solid 1px #c3c3c3;
			}
			
			#panel {
				padding: 50px;
				display: none;
			}
		</style>
	</head>

	<body>
		<div id="flip">点我，显示或隐藏面板。</div>
		<div id="panel">Hello world!</div>
		<script src="jquery-1.12.4.min.js"></script>
		<script>
			$('#flip').click(
				function(){
					$('#panel').slideToggle(1000);
					$('#panel').toggle('slow');
//					$('#panel').fadeToggle(2000);
				}
			)
	</body>

</html>